﻿<UserControl x:Class="WpfImageDuplicates.ThumbViewBottom"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:y="clr-namespace:WpfImageDuplicates"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:wpf="clr-namespace:BrainTechLLC.WPF;assembly=BrainTechLLC.WPF"             
             xmlns:local="clr-namespace:WpfImageDuplicates"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"              
             mc:Ignorable="d">
    <!--HorizontalAlignment="Stretch"-->
    <Grid Margin="0,2,4,0" Background="AliceBlue" x:Name="g">
        <ToggleButton FontFamily="Arial" FontSize="9" FontWeight="Bold" 
                   x:Name="txtFileName" Width="Auto" VerticalAlignment="Center" HorizontalAlignment="Stretch" Padding="2,0,2,0" BorderThickness="1,1,1,1" Background="Transparent">
            <ToggleButton.Content>
                <WrapPanel Orientation="Horizontal" HorizontalAlignment="Left" Background="Transparent">
                    <Grid Background="White">
                        <TextBlock Tag="FileNameOnly" x:Name="txtFileNameOnly" Foreground="Black" Visibility="{Binding ThumbShowFileNameVisible}" TextDecorations="Underline" Cursor="Hand" MouseLeftButtonDown="txtFileNameOnly_MouseLeftButtonDown"
                                   VerticalAlignment="Center" />
                        <TextBox Tag="ChangeFileName" x:Name="txtChangeFileName" Background="White" Canvas.ZIndex="998" Margin="0,-4,0,0" KeyDown="txtChangeFileName_KeyDown"
                               Visibility="{Binding EnteredFileNameEditModeVis}"
                               Text="{Binding Mode=TwoWay, Path=NewFileName}" VerticalAlignment="Center"/>                        
                    </Grid>
                    <!--<TextBlock Margin="6,0,0,0" Foreground="Chocolate" x:Name="txtDesiredSort" Text="{Binding DesiredOrdering}" />-->
                    <TextBlock Margin="6,0,0,0" Foreground="DarkRed" x:Name="txtShowFileSize" Tag="FileSizeFormatted" Visibility="{Binding ThumbShowFileSizeVisible}" />
                    <TextBlock Margin="6,0,0,0" Foreground="DarkCyan" x:Name="txtDimensions" Tag="WidthHeight" Visibility="{Binding ThumbShowDimensionsVisible}" />
                    <TextBlock Margin="6,0,0,0" Foreground="Chocolate" x:Name="txtFileDate" Tag="FileDateTime" Visibility="{Binding ThumbShowFileDatesVisible}" />
                    <TextBlock Margin="6,0,0,0" Foreground="DarkBlue" x:Name="txtDescription" Tag="ImageDescription" Visibility="{Binding ThumbShowFileDescriptions}" />
                    <TextBlock Margin="6,0,0,0" x:Name="txtShowFullPath" Tag="FileName" Visibility="{Binding ThumbShowFullPathVisible}" />
                    <StackPanel Margin="6,0,0,0" Orientation="Horizontal" HorizontalAlignment="Right" Width="Auto" Visibility="{Binding Mode=OneWay, Path=Blur, Converter={StaticResource DoubleVisibilityConverter}}">
                        <TextBlock Text="Blur: "/>
                        <TextBlock HorizontalAlignment="Right" Width="Auto" Text="{Binding Path=Blur, StringFormat=N0}" MinWidth="40"/>
                    </StackPanel>
                    <StackPanel Margin="6,0,0,0" Orientation="Horizontal" HorizontalAlignment="Center" Width="Auto" Visibility="{Binding Mode=OneWay, Path=Similarity, Converter={StaticResource DoubleVisibilityConverter}}">
                        <TextBlock Text="Similarity: "/>
                        <TextBlock Text="{Binding Path=Similarity, StringFormat=N0}" MinWidth="40"/>
                    </StackPanel>
                </WrapPanel>
            </ToggleButton.Content>
        </ToggleButton>
    </Grid>
</UserControl>
